package com.fire.control.system.support.protocol.comman;

import java.io.Serializable;

import com.fire.control.system.support.util.XdaoDate;

/***
 * 
 * @ClassName:  PayMentResponseProtocol   
 * @Description: 计费中心响应协议 ，所有的响应协议应该继承该类。
 * @author:   chenchuang
 * @date:   2017年4月25日 上午10:12:02   
 *
 */

public abstract class ResponseProtocol implements Serializable{
	
	private static final long serialVersionUID = 1L;
	/**   
	 * @Fields taskuuid : 任务ID，每一次调用唯一ID，该ID来自于请求信息。   
	 */ 
	private String taskuuid;
	/**   
	 * @Fields isSuccess : 成功失败，true成功，false失败 
	 */ 
	private Boolean isSuccess;
	/**   
	 * @Fields code : 信息状态码
	 */ 
	private int code;
	/**   
	 * @Fields message : 返回的文字描述信息 
	 */ 
	private String message;
	/**   
	 * @Fields date : 时间  
	 */ 
	private XdaoDate date = new XdaoDate();
	/**   
	 * @Fields data : 返回的数据
	 */ 
	private Object data;
	
	

	public String getTaskuuid() {
		return taskuuid;
	}



	public ResponseProtocol setTaskuuid(String taskuuid) {
		this.taskuuid = taskuuid;
		return this;
	}



	public Boolean getIsSuccess() {
		return isSuccess;
	}



	public ResponseProtocol setIsSuccess(Boolean isSuccess) {
		this.isSuccess = isSuccess;
		return this;
	}






	public int getCode() {
		return code;
	}



	public ResponseProtocol setCode(int code) {
		this.code = code;
		return this;
	}



	public String getMessage() {
		return message;
	}



	public ResponseProtocol setMessage(String message) {
		this.message = message;
		return this;
	}



	public XdaoDate getDate() {
		return date;
	}



	public ResponseProtocol setDate(XdaoDate date) {
		this.date = date;
		return this;
	}



	public Object getData() {
		return data;
	}



	public ResponseProtocol setData(Object data) {
		this.data = data;
		return this;
	}



	@Override
	public abstract String toString();
}
